package src.model.entity;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "SEANSS", schema = "HB")
@SequenceGenerator(name = "SEQ_GEN", sequenceName = "SEN_SEQ", initialValue = 1, allocationSize = 1)
public class Seans extends abstractEntity {

	private String seansTime;
	private Set<Movies> moviess;

	@Column(name = "SEANS_TIME")
	public String getSeansTime() {
		return seansTime;
	}

	public void setSeansTime(String seansTime) {
		this.seansTime = seansTime;
	}

	@OneToMany(mappedBy="seans")
	public Set<Movies> getMoviess() {
		return moviess;
	}

	public void setMoviess(Set<Movies> moviess) {
		this.moviess = moviess;
	}

	@Override
	public String toString() {
		return seansTime;
	}

}
